package dao;

public class encrypt {
	public static String maHoaPw (String pw){
		String replace_pw = "";
		for(int i = 0; i < pw.length(); i ++){
			if(pw.charAt(i) == 'q')
			{
				replace_pw += "a";
			}
			else if(pw.charAt(i) == 'w')
			{
				replace_pw += "s";
			}
			else if(pw.charAt(i) == 'e')
			{
				replace_pw += "d";
			}
			else if(pw.charAt(i) == 'r')
			{
				replace_pw += "f";
			}
			else if(pw.charAt(i) == 't')
			{
				replace_pw += "g";
			}
			else if(pw.charAt(i) == 'y')
			{
				replace_pw += "h";
			}
			else if(pw.charAt(i) == 'u')
			{
				replace_pw += "j";
			}
			else if(pw.charAt(i) == 'i')
			{
				replace_pw += "k";
			}
			else if(pw.charAt(i) == 'o')
			{
				replace_pw += "l";
			}
			else if(pw.charAt(i) == 'p')
			{
				replace_pw += "q";
			}
			else if(pw.charAt(i) == 'a')
			{
				replace_pw += "w";
			}
			else if(pw.charAt(i) == 's')
			{
				replace_pw += "e";
			}
			else if(pw.charAt(i) == 'd')
			{
				replace_pw += "r";
			}
			else if(pw.charAt(i) == 'f')
			{
				replace_pw += "t";
			}
			else if(pw.charAt(i) == 'g')
			{
				replace_pw += "z";
			}
			else if(pw.charAt(i) == 'h')
			{
				replace_pw += "x";
			}
			else if(pw.charAt(i) == 'j')
			{
				replace_pw += "c";
			}
			else if(pw.charAt(i) == 'k')
			{
				replace_pw += "v";
			}
			else if(pw.charAt(i) == 'l')
			{
				replace_pw += "b";
			}
			else if(pw.charAt(i) == 'z')
			{
				replace_pw += "n";
			}
			else if(pw.charAt(i) == 'x')
			{
				replace_pw += "m";
			}
			else if(pw.charAt(i) == 'c')
			{
				replace_pw += "y";
			}
			else if(pw.charAt(i) == 'v')
			{
				replace_pw += "u";
			}
			else if(pw.charAt(i) == 'b')
			{
				replace_pw += "i";
			}
			else if(pw.charAt(i) == 'n')
			{
				replace_pw += "o";
			}
			else if(pw.charAt(i) == 'm')
			{
				replace_pw += "p";
			}
			else if(pw.charAt(i) == 'Q')
			{
				replace_pw += "Z";
			}
			else if(pw.charAt(i) == 'W')
			{
				replace_pw += "X";
			}
			else if(pw.charAt(i) == 'E')
			{
				replace_pw += "C";
			}
			else if(pw.charAt(i) == 'R')
			{
				replace_pw += "V";
			}
			else if(pw.charAt(i) == 'T')
			{
				replace_pw += "B";
			}
			else if(pw.charAt(i) == 'Y')
			{
				replace_pw += "N";
			}
			else if(pw.charAt(i) == 'U')
			{
				replace_pw += "M";
			}
			else if(pw.charAt(i) == 'I')
			{
				replace_pw += "Q";
			}
			else if(pw.charAt(i) == 'O')
			{
				replace_pw += "W";
			}
			else if(pw.charAt(i) == 'P')
			{
				replace_pw += "E";
			}
			else if(pw.charAt(i) == 'A')
			{
				replace_pw += "R";
			}
			else if(pw.charAt(i) == 'S')
			{
				replace_pw += "T";
			}
			else if(pw.charAt(i) == 'D')
			{
				replace_pw += "Y";
			}
			else if(pw.charAt(i) == 'F')
			{
				replace_pw += "U";
			}
			else if(pw.charAt(i) == 'G')
			{
				replace_pw += "I";
			}
			else if(pw.charAt(i) == 'H')
			{
				replace_pw += "O";
			}
			else if(pw.charAt(i) == 'J')
			{
				replace_pw += "P";
			}
			else if(pw.charAt(i) == 'K')
			{
				replace_pw += "A";
			}
			else if(pw.charAt(i) == 'L')
			{
				replace_pw += "S";
			}
			else if(pw.charAt(i) == 'Z')
			{
				replace_pw += "D";
			}
			else if(pw.charAt(i) == 'X')
			{
				replace_pw += "F";
			}
			else if(pw.charAt(i) == 'C')
			{
				replace_pw += "G";
			}
			else if(pw.charAt(i) == 'V')
			{
				replace_pw += "H";
			}
			else if(pw.charAt(i) == 'B')
			{
				replace_pw += "J";
			}
			else if(pw.charAt(i) == 'N')
			{
				replace_pw += "K";
			}
			else if(pw.charAt(i) == 'M')
			{
			replace_pw += "L";
			}
			else if(pw.charAt(i) == '0')
			{
			replace_pw += "4";
			}
			else if(pw.charAt(i) == '1')
			{
			replace_pw += "9";
			}
			else if(pw.charAt(i) == '2')
			{
			replace_pw += "2";
			}
			else if(pw.charAt(i) == '3')
			{
			replace_pw += "6";
			}
			else if(pw.charAt(i) == '4')
			{
			replace_pw += "1";
			}
			else if(pw.charAt(i) == '5')
			{
			replace_pw += "0";
			}
			else if(pw.charAt(i) == '6')
			{
			replace_pw += "7";
			}
			else if(pw.charAt(i) == '7')
			{
			replace_pw += "4";
			}
			else if(pw.charAt(i) == '8')
			{
			replace_pw += "2";
			}
			else if(pw.charAt(i) == '9')
			{
			replace_pw += "3";
			}
			else {
				replace_pw += pw.charAt(i);
			}
			}
		return replace_pw;
		}
}
